<jsp:useBean id="address" scope="request" type="com.xm.entity.Address"/>
<jsp:useBean id="isCommodityImags" scope="request" type="java.lang.Boolean"/>
<jsp:useBean id="commodity" scope="request" type="com.xm.entity.Commodity"/>
<%--
  Created by IntelliJ IDEA.
  User: 吴
  Date: 2023/12/20
  Time: 11:37
  To change this template use File | Settings | File Templates.
--%>
<!-- 标记为HTML格式 -->
<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ page isELIgnored="false" %>
<!-- 设置页面为Chain -->
<html lang="ch">
<head>
    <title>${commodity.commodityName} 立即购买</title>
    <!-- 设置地址栏主题背景颜色 -->
    <meta name="theme-color" content="#000000">
    <!-- 页面描述 -->
    <meta name="description" content="商品详情页面">
    <!-- 移动端显示 -->
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <!-- 页面Logo -->
    <link rel="shortcut icon" href="http://localhost:8083/resource_packs/images/logo.png">
    <!-- CSS -->
    <link href="${pageContext.request.contextPath}/other/style/reception_desk/product_details.css" rel="stylesheet"
          type="text/css"/>
    <%--    JQuery--%>
    <script src="${pageContext.request.contextPath}/other/component/jquery.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.1.1/crypto-js.min.js"></script>
    <script src="${pageContext.request.contextPath}/other/resource/aes_key_util.js"></script>
    <script src="${pageContext.request.contextPath}/other/resource/input_util.js"></script>
    <script src="${pageContext.request.contextPath}/other/scripts/reception_desk/product_details.js"></script>
</head>
<body>
<jsp:useBean id="accountId" scope="request" type="java.lang.String"/>
<jsp:useBean id="name" scope="request" type="java.lang.String"/>
<jsp:useBean id="id" scope="request" type="java.lang.Integer"/>
<!-- jsp:include导入网页导航栏  jsp:param向导航栏传值 -->
<jsp:include page="/WEB-INF/page/reception_desk/navigation_bar.jsp" flush="true">
    <jsp:param name="accountid" value="${accountId}"/>
    <jsp:param name="name" value="${name}"/>
    <jsp:param name="id" value="${id}"/>
</jsp:include>
<div class="body">
    <div class="head">
        <div class="title">
            <span>${commodity.commodityName}</span>
        </div>
        <div class="directory" account-id="${accountId}" name="${name}" information-id="${id}" commodity-id="${commodity.commodityId}">
            <a class="product-overview">概述页</a>
            <span></span>
            <a class="product-parameter">参数页</a>
            <span></span>
            <a class="redeem-codes">F码通道</a>
            <span></span>
            <a>用户评价</a>
        </div>
    </div>
    <c:if test="${accountId == 0}">
        <div class="prompt">
            <div class="prompt-context">
                <a>为方便你购买，请提前登录</a>
                <span class="go-login">立即登录</span>
                <img src="http://localhost:8083/resource_packs/images/fork.png"
                     alt="取消" class="down">
            </div>
        </div>
    </c:if>
    <jsp:useBean id="menu" scope="request" type="java.lang.Integer"/>
    <c:if test="${menu == 1}">
        <!-- jsp:include导入网页导航栏  jsp:param向导航栏传值 -->
        <jsp:include page="/WEB-INF/page/reception_desk/commodity.jsp" flush="true">
            <jsp:param name="commodity" value="${commodity}"/>
            <jsp:param name="address" value="${address}"/>
            <jsp:param name="isCommodityImags" value="${isCommodityImags}"/>
        </jsp:include>
    </c:if>
    <c:if test="${menu == 2}">
        <!-- jsp:include导入网页导航栏  jsp:param向导航栏传值 -->
        <jsp:include page="/WEB-INF/page/reception_desk/commodity_overview.jsp" flush="true">
            <jsp:param name="commodity" value="${commodity}"/>
        </jsp:include>
    </c:if>
    <c:if test="${menu == 3}">
        <!-- jsp:include导入网页导航栏  jsp:param向导航栏传值 -->
        <jsp:include page="/WEB-INF/page/reception_desk/commodity_parameter.jsp" flush="true">
            <jsp:param name="commodity" value="${commodity}"/>
        </jsp:include>
    </c:if>
    <div style="width: 80%;margin: auto">
        <div class="price-description">
            <h3>价格说明</h3>
            <img src="http://localhost:8083/resource_packs/images/price_description.png" alt="价格说明"
                 style="width:100%">
        </div>
    </div>
</div>

<!-- jsp:include导入网页尾部  jsp:param向该页面传值 -->
<jsp:include page="/WEB-INF/page/reception_desk/footer_page.jsp" flush="true">
    <jsp:param name="id" value="1"/>
</jsp:include>
</body>
</html>
